<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../../mytags.jsp"%>
<t:base type="jquery"></t:base>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>我的设备</title>
    <style>
        .inrr{
            width:100%;
        }
        .inrr h4 span{
            width:25%;
        }
    </style>
<script type="text/javascript" charset="utf-8">
	mui.init();
</script>
</head>
<body>
	<div class="fp_t">共计${size }台设备</div>
    <div class="mui-card" style="width:100%;padding:0px;margin:0px;text-align:center;line-height:20px;padding:5px 5px 5px 5px;">
        如果您的设备有变动，请联系中影巴可客服热线<br/><a href="tel:400-88-22726" style="color:blue">400-88-22726</a>。
    </div>
	<div class="eq1">
		<ul class="mui-table-view eeq">
			<c:forEach items="${equip }" var="equip">
				<li class="mui-table-view-cell we inrr">
					<h3 class="equip-list-span">
						设备序列号：${equip.sn }
					</h3> <a class="mui-navigate-right set_im"
					href="cbsWxUserCenterController.do?userEquipListCon&id=${equip.id }">
						<div class="inrr">
							<h4>
								<span>设备型号</span>${equip.type.typeDesc }
							</h4>
							<h4>
								<span>厅号</span>${equip.house.roomNum }<br>
							</h4>
							<h4>
								<span>保修状态</span>
								<c:if test="${equip.isServicing eq '0' }">
									在保
								</c:if>
								<c:if test="${equip.isServicing eq '1' }">
									<span style="color:#f16671;text-align: left;">出保</span>
								</c:if>
							</h4>
						</div>
				</a>
                </li>
			</c:forEach>

		</ul>
		<script type="text/javascript">
		$(document).ready(function() {
			var userType = '${user.authenticationLevel}';
			if(userType == '3'){
				mui.alert('您的认证正在审核中，请稍后在进行操作！');
			}else if(userType != '2'){
				if('${isbind}' == 'true'){
					mui.alert('您的认证未通过！如有疑问，请联系巴可客服人员');
					return;
				}
				//没有钻石（原金牌）会员权限
				var btnArray = ['取消', '确认'];
		        // mui.confirm('您还没有认证金牌会员，现在认证？', '提示', btnArray, function(e) {
		        mui.confirm('您还没有认证钻石会员，现在认证？', '提示', btnArray, function(e) {
		            if (e.index == 1) {
		                window.location.href="loginWxController.do?goUserBind";
		                return;
		            }
		        })
			}
			})
		</script>
	</div>
</body>
</html>